package com.jiejie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 辰广
 * @since 2022-10-05
 */
@TableName("customer_and_coupon")
public class CustomerAndCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户已领取优惠券id
     */
    @TableId(value = "customer_and_coupon_id", type = IdType.AUTO)
    private Integer customerAndCouponId;

    /**
     * 用户id
     */
    private Integer customerId;

    /**
     * 优惠券id
     */
    private Integer couponId;

    /**
     * 优惠券生效时间
     */
    private LocalDateTime customerAndCouponStart;

    /**
     * 优惠券失效时间
     */
    private LocalDateTime customerAndCouponValit;

    /**
     * 优惠券状态
     */
    private Integer customerAndCouponStatus;

    /**
     * 锁
     */
    private Integer customerAndCouponVersion;

    private LocalDateTime customerAndCouponCreateTime;

    private LocalDateTime customerAndCouponUpdateTime;

    private String orther1;

    private String orther2;

    public Integer getCustomerAndCouponId() {
        return customerAndCouponId;
    }

    public void setCustomerAndCouponId(Integer customerAndCouponId) {
        this.customerAndCouponId = customerAndCouponId;
    }
    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }
    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }
    public LocalDateTime getCustomerAndCouponStart() {
        return customerAndCouponStart;
    }

    public void setCustomerAndCouponStart(LocalDateTime customerAndCouponStart) {
        this.customerAndCouponStart = customerAndCouponStart;
    }
    public LocalDateTime getCustomerAndCouponValit() {
        return customerAndCouponValit;
    }

    public void setCustomerAndCouponValit(LocalDateTime customerAndCouponValit) {
        this.customerAndCouponValit = customerAndCouponValit;
    }
    public Integer getCustomerAndCouponStatus() {
        return customerAndCouponStatus;
    }

    public void setCustomerAndCouponStatus(Integer customerAndCouponStatus) {
        this.customerAndCouponStatus = customerAndCouponStatus;
    }
    public Integer getCustomerAndCouponVersion() {
        return customerAndCouponVersion;
    }

    public void setCustomerAndCouponVersion(Integer customerAndCouponVersion) {
        this.customerAndCouponVersion = customerAndCouponVersion;
    }
    public LocalDateTime getCustomerAndCouponCreateTime() {
        return customerAndCouponCreateTime;
    }

    public void setCustomerAndCouponCreateTime(LocalDateTime customerAndCouponCreateTime) {
        this.customerAndCouponCreateTime = customerAndCouponCreateTime;
    }
    public LocalDateTime getCustomerAndCouponUpdateTime() {
        return customerAndCouponUpdateTime;
    }

    public void setCustomerAndCouponUpdateTime(LocalDateTime customerAndCouponUpdateTime) {
        this.customerAndCouponUpdateTime = customerAndCouponUpdateTime;
    }
    public String getOrther1() {
        return orther1;
    }

    public void setOrther1(String orther1) {
        this.orther1 = orther1;
    }
    public String getOrther2() {
        return orther2;
    }

    public void setOrther2(String orther2) {
        this.orther2 = orther2;
    }

    @Override
    public String toString() {
        return "CustomerAndCoupon{" +
            "customerAndCouponId=" + customerAndCouponId +
            ", customerId=" + customerId +
            ", couponId=" + couponId +
            ", customerAndCouponStart=" + customerAndCouponStart +
            ", customerAndCouponValit=" + customerAndCouponValit +
            ", customerAndCouponStatus=" + customerAndCouponStatus +
            ", customerAndCouponVersion=" + customerAndCouponVersion +
            ", customerAndCouponCreateTime=" + customerAndCouponCreateTime +
            ", customerAndCouponUpdateTime=" + customerAndCouponUpdateTime +
            ", orther1=" + orther1 +
            ", orther2=" + orther2 +
        "}";
    }
}
